<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
class Common extends Controller
{
	public $appid = '123';
	public $appkey = '1aaaa';
	public static $callback;
	public function __construct(Request $request)
	{
		parent::__construct();
		$appid = md5($this->appid);
		$appkey = md5($this->appkey);
		self::$callback = $request->param("callback");
		if(md5($this->appid)!=$appid||md5($this->appkey)!=$appkey){
			$arr['status'] = 30002;
			$arr['msg'] = '用户信息错误';
			echo callback(self::$callback,$arr);exit;
		}
	}
}
